class EndScene extends Scene {
    constructor(dir) {
        super(dir)
        this.label = new Label(dir, 'Game Over,press R back title', 50, 200)
        this.addNode(this.label)
        var s = new StartScene(dir)
        dir.registerAction('r', function () {
            dir.replaceScene(s)
        })
    }

}